PROJECT(astng)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../;${CMAKE_CURRENT_SOURCE_DIR}/../grammar)

SET(astng_moc_hdrs
    ModulesMgr.h
    Scopes/PyName.h
    Scopes/Scope.h
    Scopes/ModuleScope.h
)

SET(astng_moc_srcs
    ModulesMgr.cpp
    Scopes/PyName.cpp
    Scopes/Scope.cpp
    Scopes/ModuleScope.cpp
)
SET(astng_srcs
    ModulesMgr.cpp
    CramBuilder.cpp
    CramBuilder.h
    BinaryModule.h
    BinaryModule.cpp
    object.h
    CacheMap.h
    CacheMap.cpp
    RestoreVisitor.h
    RestoreVisitor.cpp
    ErrorCodes.h
    Scopes/FunctionScope.cpp
    Scopes/FunctionScope.h
    Scopes/ClassScope.cpp
    Scopes/ClassScope.h
)

QT4_WRAP_CPP(astng_moc_srcs ${astng_moc_hdrs})

add_library(astng ${astng_srcs} ${astng_moc_srcs})

